import request from '@/utils/request'

// 查询用户评论列表
export function listReview(query) {
  return request({
    url: '/proSystem/review/list',
    method: 'get',
    params: query
  })
}

// 查询用户评论详细
export function getReview(id) {
  return request({
    url: '/proSystem/review/' + id,
    method: 'get'
  })
}

// 新增用户评论
export function addReview(data) {
  return request({
    url: '/proSystem/review',
    method: 'post',
    data: data
  })
}

// 修改用户评论
export function updateReview(data) {
  return request({
    url: '/proSystem/review',
    method: 'put',
    data: data
  })
}

// 删除用户评论
export function delReview(id) {
  return request({
    url: '/proSystem/review/' + id,
    method: 'delete'
  })
}



export function toRe(id) {
  return request({
    url: '/proSystem/item/list' + id,
    method: 'delete'
  })
}


export function listSpecification(query) {
  return request({
    url: '/specification/specification/list',
    method: 'get',
    params: query
  })
}





// 查询评论内容列表
export function listReply(query) {
  return request({
    url: '/proSystem/reply/list',
    method: 'get',
    params: query
  })
}

// 查询评论内容详细
export function getReply(id) {
  return request({
    url: '/proSystem/reply/' + id,
    method: 'get'
  })
}

// 新增评论内容
export function addReply(data) {
  return request({
    url: '/proSystem/reply',
    method: 'post',
    data: data
  })
}

// 修改评论内容
export function updateReply(data) {
  return request({
    url: '/proSystem/reply',
    method: 'put',
    data: data
  })
}

// 删除评论内容
export function delReply(id) {
  return request({
    url: '/proSystem/reply/' + id,
    method: 'delete'
  })
}
